﻿namespace UniversalApproach.Expands
{
    public static class EncoderTypeExpand
    {
        /// <summary>
        /// 编码类型名称转为字符串名称
        /// </summary>
        /// <param name="e">编码类型</param>
        /// <returns></returns>
        public static string ToStr(this EncoderType e)
        {
            var n= e.ToString().ToLower();
            if (n.Contains("utf"))
                return n.Replace("utf", "utf-");
            return n;
        }
    }
}